<template>
    <div class="box8">
        <div class="title">
            <p> 数据统计</p>
            <img src="../../images/dataScreen-title.png" alt="">
        </div>

        <div class="charts" ref="charts">

        </div>
    </div>
</template>

<script setup lang='ts' name='Counter'>
import * as echarts from 'echarts';
import { onMounted, ref } from 'vue';

let charts = ref();

onMounted(() => {
    let mycharts = echarts.init(charts.value);
    mycharts.setOption({

    })
})
</script>

<style scoped lang='scss'>
.box8 {
    width: 100%;
    height: 100%;
    background: url('../../images/dataScreen-main-cb.png') no-repeat;
    background-size: 100% 100%;

    .title {
        margin-left: 20px;

        p {
            color: white;
            font-size: 20px;
        }
    }

    .charts {
        height: calc(100% - 40px);
    }
}
</style>